<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<body>
	<ul class="user_menu" th:fragment="page-user-bar">
			<li class="act first" th:if="${#strings.isEmpty(session.UVO.guestName)}">
	    	<a th:href="@{initGuestRegister}"><div><span class="button-t" >注册新用户</span></div></a>
			</li>
			<li class="last">&nbsp;&nbsp;&nbsp;&nbsp;</li>
			<li class="last" th:if="${#strings.isEmpty(session.UVO.guestName)}">
				<a th:href="@{initGuestLogin}"><div><span class="button-t">登录</span></div></a>
			</li>
			<li class="act first" th:if="${not #strings.isEmpty(session.UVO.guestName)}">
				<a th:href="@{initEditGuest}"><span class="button-t" th:text="${session.UVO.guestName}">张三</span></a>
			</li>
			<li class="last" th:if="${not #strings.isEmpty(session.UVO.guestName)}">
				<a th:href="@{/}"><span class="button-t">退出</span></a>
			</li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<li>
			<form action="selectGoods" th:object="${goodsForm}" method="post">
			<input type="text" name="commodityName"/>
			<input type="submit" value="检索"/>
			</form></li> 
			</ul>
</body>
</html>